package com.ojoin.trade.common.web.controller;
 
import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ojoin.trade.common.utils.Config;
import com.ojoin.trade.common.web.shiro.session.SessionDAO;


/**
 * 用户注册
 */
@Controller()
@RequestMapping(value = "user")
public class RegisterUserController extends SimpleBaseController {

	private final Logger logger = LoggerFactory.getLogger(getClass());
	
	/**
     * 现在支付注册地址
     */
	private  final String IPAYNOW_REGIST_URL=Config.getProperty("ipaynow.gotoprefix")+"/regis/index?orgId="+Config.getProperty("ipaynow.joinorgcode")+"&channel=join";
    
    /**
     * 现在支付忘记密码
     */
	private  final String IPAYNOW_FORGET_URL=Config.getProperty("ipaynow.gotoprefix")+"/merchan/index?orgId="+Config.getProperty("ipaynow.joinorgcode")+"&channel=join";
    
	@RequestMapping(value = "/reg", method = RequestMethod.GET)
	public String regIPayNow(HttpServletRequest request) {
		return "redirect:"+IPAYNOW_REGIST_URL;
	}
	
	@RequestMapping(value = "/findPwd", method = RequestMethod.GET)
	public String findPwd(HttpServletRequest request) {
		return "redirect:"+IPAYNOW_FORGET_URL;
	}

}
